package com.vben.common.core.enums;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * 响应状态码枚举
 *
 * @author sunn
 */
@Getter
@RequiredArgsConstructor
public enum ResponseCodeEnum {

    /**
     * 成功
     */
    SUCCESS(200, "ok"),

    /**
     * 失败
     */
    FAIL(500, "error");

    /**
     * 响应码
     */
    private final int code;

    /**
     * 响应信息
     */
    private final String msg;
}
